A regular expression scripting system by Steve Israelson.
Hi,
In the July/August Issue of DrDobb's SourceBook there is an article on a Generic Parsing Engine in C++. This is a very interesting article by Todd Esposito and Adrew Johnson. This article presents and excellent way to implement a scripting system. The only problems I had with the scripting system presented there were that it was incomplete, it was not made specifically for the Mac, and it was too slow. Here you will find my implementation of the concepts presented in the magazine. I re-wrote everything from scratch and I think I have come up with a faster, more powerful solution, although when re-reading the article, some aspects are quite similar.
This code requires PowerPlant and CodeWarrior. This is because I make use of its LList class to handle lists. You could easily modify the code to work with any class that handles lists.
You are free to use this code in any applications you like. You however can not sell the source code. If the source code is included in source code collections (Cd-Roms etc), it is ok provided I get a complimentary copy.
This scripting system is being used in my free-ware product called Pfhorte. Pfhorte allows you to edit Bungies Marathon map files.
If you have any comments or questions feel free to e-mail me at steve_israelson@mindlink.net